package com.mall.cloud.service;

import com.mall.cloud.bean.User;
import com.mall.cloud.common.CommonResult;

import java.util.List;
import java.util.concurrent.Future;

public interface UserHystrixService {

    CommonResult getUser(Long id);

//    public CommonResult getDefaultUser(Long id);

    CommonResult getUserCommand(Long id);

    CommonResult getUserException(Long id);

    CommonResult getUserCache(Long id);

    CommonResult removeCache(Long id);

    CommonResult testList();

    Future<User> getUserFuture(Long id);

    List<User> getUserByIds(List<Long> ids);
}
